<!--
 * @Author: WangShuai 1830773767@qq.com
 * @Date: 2025-06-29 22:33:55
 * @LastEditors: WangShuai 1830773767@qq.com
 * @LastEditTime: 2025-06-30 14:55:07
 * @FilePath: \electrion\pages\index.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./index.css">
    <!--   控制台提示 CSP 内容安全策略问题
    VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security 
    default-src 'self',//引入外部文件只能是同源的
    style-src 'self' 'unsafe-inline',//引入样式文件 可以是同源的 或行内同样式
    -->
    <meta http-equiv="Content-Security-Policy"
        content="default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;">
    <title>欢迎学习Electron开发</title>
</head>

<body>
    <h1>你好 Electron</h1>
    <button id="btn1">点我</button>
    <br>
    <hr>
    <input id="input" type="text">
    <button id="btn2">向D盘写入hello.txt文件</button>
    <br>
    <hr>
    <input id="input1" type="text">
    <button id="btn3">读取D盘hello.txt文件</button>
    <script src="./render.js"></script>
</body>

</html>